package com.ruoyi.training.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 教材资源对象 a_05_res_textbook
 * 
 * @author WorrilessGo
 * @date 2025-11-18
 */
public class A05ResTextbook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教材ID */
    private String textbookId;

    /** 教材编号 */
    @Excel(name = "教材编号")
    private String textbookCode;

    /** 教材名称 */
    @Excel(name = "教材名称")
    private String textbookName;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** ISBN */
    @Excel(name = "ISBN")
    private String isbn;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 所属课程 */
    @Excel(name = "所属课程")
    private String courseId;

    /**作者*/
    @Excel(name = "作者")
    private String author;

    public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

    public void setTextbookId(String textbookId) 
    {
        this.textbookId = textbookId;
    }

    public String getTextbookId() 
    {
        return textbookId;
    }

    public void setTextbookCode(String textbookCode) 
    {
        this.textbookCode = textbookCode;
    }

    public String getTextbookCode() 
    {
        return textbookCode;
    }

    public void setTextbookName(String textbookName) 
    {
        this.textbookName = textbookName;
    }

    public String getTextbookName() 
    {
        return textbookName;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }

    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    public void setCourseId(String courseId) 
    {
        this.courseId = courseId;
    }

    public String getCourseId() 
    {
        return courseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("textbookId", getTextbookId())
            .append("textbookCode", getTextbookCode())
            .append("textbookName", getTextbookName())
            .append("publisher", getPublisher())
            .append("publishDate", getPublishDate())
            .append("isbn", getIsbn())
            .append("unitPrice", getUnitPrice())
            .append("courseId", getCourseId())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .toString();
    }
}
